package model

// Player represents player
type Player struct {
	ID          int         `json:"id"`
	Token       string      `json:"token"`
	Name        string      `json:"name"`
	Rank        Rank        `json:"rank"`
	Score       int         `json:"score"`
	CharacterID int         `json:"character" gorm:"foreignkey"`
	State       PlayerState `json:"state" gorm:"-"`
}

// NewPlayer factory
func NewPlayer() *Player {
	return &Player{}
}

// RegisterInput is for Register
type RegisterInput struct {
	PlayerName        string `json:"playerName"`
	CharacterImageURL string `json:"characterImageUrl"`
}
